/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.lspobey.Impl;

/**
 *
 * @author Siya
 */
public class NormalHours {
    
    private double rate;
    private static final int WORKHOURS = 9;
    
    public NormalHours(){
         
    }
    public NormalHours(int rt ){
    
        rate = rt;
    }

    /**
     * @return the rate
     */
    public double getRate() {
        return rate;
    }

    /**
     * @param rate the rate to set
     */
    public void setRate(double rate) {
        this.rate = rate;
    }
    public double salary(){
    
        return rate * WORKHOURS;
    }
}
